package com.dinzeer.sjapadder.data;

import com.dinzeer.sjapadder.Sjap_adder;
import mods.flammpfeil.slashblade.SlashBlade;
import mods.flammpfeil.slashblade.event.drop.EntityDropEntry;
import net.minecraft.data.worldgen.BootstapContext;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.phys.Vec3;
import net.minecraftforge.common.Tags;

public class SjaSlashBladeEntityDropBuiltInRegistry {
    public static final ResourceKey<EntityDropEntry> ICE_QUEEN_DROP = register("ice_queen_drop");
    public static final ResourceKey<EntityDropEntry> RAINBOW_DROP=register("rainbow_drop");
    public static final ResourceKey<EntityDropEntry> BREAK_MOON_DROP=register("break_moon_drop");

    public static void registerAll(BootstapContext<EntityDropEntry> bootstrap) {
        bootstrap.register(ICE_QUEEN_DROP,
                new EntityDropEntry(
                        new ResourceLocation("twilightforest", "snow_queen"),
                        Sjap_adder.prefix("frostbane_moonveil"), 0.1F, false));
        bootstrap.register(RAINBOW_DROP,
                new EntityDropEntry(
                        new ResourceLocation("twilightforest", "quest_ram"),
                        Sjap_adder.prefix("rainbow_slash"), 1.0F, false));
        bootstrap.register(BREAK_MOON_DROP,
                new EntityDropEntry(
                        new ResourceLocation("minecraft", "warden"),
                        Sjap_adder.prefix("break_moon"), 0.1F, false));

    }




    private static ResourceKey<EntityDropEntry> register(String id) {
        ResourceKey<EntityDropEntry> loc = ResourceKey.create(EntityDropEntry.REGISTRY_KEY, SlashBlade.prefix(id));
        return loc;
    }
}
